<?php

namespace App\Services;

use App\Models\Classes;

/**
 * Class ClassesService
 * @method static ClassesService getInstance()
 * @package App\Services\Mj
 */
class ClassesService extends SingleService
{
    public function search($params)
    {
        $builder = Classes::query();

        if (!empty($params['academic_year'])) {
            $builder->where('academic_year', $params['academic_year']);
        }

        return $builder->get();
    }
}
